package ooday02;

/**
 * 说明:
 *
 * @author:SuZhongHe
 * @date:2023/2/22
 **/
public class ExtendsTest {
    public static void main(String[] args) {
        Student student = new Student("zs",18,"重庆","001","1");

        student.study();
        student.eat();
        student.sayHi();
        Teacher teacher = new Teacher("ls",25,"北京",1000);

        teacher.teach();
        teacher.eat();
        teacher.sayHi();
        Doctor doctor = new Doctor("ww",29,"上海","A");
        doctor.cut();
        doctor.eat();
        doctor.sayHi();
    }
}
